import { createStore } from 'vuex'
const actions = {

}
const mutations = {
    setNowClass(state,index){
        state.NowClass = index;
    }
}
const state = {
    NowClass:0,
    ClassList:[
        {
            name:'git',
            noteList:[
                {
                    name:'gitMaster',
                    path:'/preview+git.html'
                },
            ]
        },
        {
            name:'nodejs',
            noteList:[
                {
                    name:'nodejsMaster',
                    path:'/preview+nodejs.html'
                }
            ]
        },
        {
            name:'SpringBoot',
            noteList:[
                {
                    name:'master',
                    path:'/preview+SpringBoot.html'
                }
            ]
        },
        {
            name:'SpringMvc',
            noteList:[
                {
                    name:'master',
                    path:'/preview+SpringMvc.html'
                }
            ]
        },
        {
            name:'Vue',
            noteList:[
                {
                    name:'master',
                    path:'/preview+Vue.html'
                }
            ]
        }
    ]

}
const store = createStore({
    actions,mutations,state
})
export default store
